/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bean.dataManipulation;

import org.ipti.br.tag.entity.Actor;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 *
 * @author luancorumba
 */
public class MonthlyFrequency implements Serializable{
    private List<Actor> actors;
    private List<Date> days;
    private Boolean[][] assiduity;

    public MonthlyFrequency(List<Actor> actors) {
        this.actors = actors;
        days = new ArrayList<Date>(1);
    }

    public MonthlyFrequency(List<Actor> actors, List<Date> days) {
        this.actors = actors;
        this.days = days;
        assiduity = new Boolean[this.actors.size()][this.days.size()];
    }
    
    public void load(Date date){
        days.clear();
        days.add(date);
        assiduity = new Boolean[this.actors.size()][1];
    }

    public List<Actor> getActors() {
        return actors;
    }

    public void setActors(List<Actor> actor) {
        this.actors = actor;
    }

    public Boolean[][] getAssiduity() {
        return assiduity;
    }

    public List<Date> getDays() {
        return days;
    }

    public void setDays(List<Date> days) {
        this.days = days;
    }
}
